package com.linln.admin.meeting.domain;

import com.linln.common.utils.StatusUtil;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author taofucheng
 * @date 2021/10/25
 */
@Data
@Entity
@Table(name="meeting_group")
@EntityListeners(AuditingEntityListener.class)
@Where(clause = StatusUtil.NOT_DELETE)
@DynamicInsert
@DynamicUpdate
public class Group implements Serializable {
    //
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name="`id`")
    private Long id;
    // 分组名称
    @Column(name="`title`")
    private String title;
    // 说明
    @Column(name="`descrip`")
    private String descrip;
    // 状态
    @Column(name="`status`")
    private Short status;
}